package day5.HomeWork;

public class Floater extends Employee{
    private int hours;

    public Floater() {
    }

    public Floater(String name, String gender, String date, int hours) {
        super(name, gender, date);
        this.hours = hours;
    }

    @Override
    public void computeSalary() {
        double salary = hours*50;
        System.out.println("临时工 "+getName()+"本月工资为 "+salary+" 元");
    }
}
